package com.itheima.order.service;

import com.itheima.order.mapper.OrderMapper;

import com.itheima.order.pojo.Order;
import com.sun.org.apache.xpath.internal.operations.Or;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 29143
 */
@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public Order findAllById(Long id){
        Order order = orderMapper.findbyId(id);
        return order;
    }

}
